# coding=utf-8
def divmoood(x=None, y=None, n=2):
    if x and y:
        try:
            x = float(x)
            y = float(y)
            ans = str(x / y).split('.')
            ans = eval(ans[0] + '.' + ans[1][:n])
            return ans
        except:
            return 0
    return 0

x = input("How many times you want to loop?")
if isinstance(x, int):
    lst = [[], []]
    for i in range(x):
        name = raw_input("What's your name?")
        score = input("What's your score?")
        lst[0].append(name)
        lst[1].append(score)
        
    average = divmoood(sum(lst[1]), len(lst[1]))
    max = max(lst[1])
    print 'average:', average
    print 'max:', max
    
else:
    pass
    
        